package staticproxy;

/**
 * @Author Fish Paradise
 * @Description
 * @Date 2019/1/28  19:11
 **/
public class AppleProxy implements Fruit {
    private Fruit fruit = null;

    public AppleProxy(Fruit fruit) {
        this.fruit = fruit;
    }

    @Override
    public void say() {
        System.out.println("this is proxy");
        fruit.say();
        System.out.println("after proxy");
    }
}
